Research
Security News
Kill Switch Hidden in npm Packages Typosquatting Chalk and Chokidar
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
unicode-emoji-utils
Advanced tools
A collection of utilities for emojis and raw data for Unicode Emojis
Support CommonJS and ES Module
Full list of Unicode Emoji, Version 15.1
from Unicode.
Using npm
npm install unicode-emoji-utils
Or yarn
yarn add unicode-emoji-utils
import { type Emoji, getAllEmojis, hasEmoji, compareVersion, stripEmojies, filterEmojis, getAllComponents, extractEmojis, getEmojisByGroup } from 'unicode-emoji-utils';
isValidEmojiVersion("1.0"); // true
isValidEmojiVersion("1.2"); // false
isValidEmojiVersion(1); // false
hasEmoji('a'); // false
hasEmoji('a 🫶'); // true
stripEmoji('a 🫶'); // 'a '
extractEmoji('👋🏼adfsadfs safdsaf dsafds 🫶'); // ['👋🏼', '🫶']
getAllEmojis(); // ['🫶', '👋🏼', '🙏🏿', '👨🏻🤝👨🏼', '👬', ...]
const emojis = [{emoji: '🫶', version: '14.0' }];
getAllEmojis(emojis); // ['🫶']
filterEmojis('14.0'); // Filter Emojis from version 14.0 and below
filterEmojis('14.0', true); // Only returns emoji with version 14.0
const emojis = [{emoji: '🫶', version: '14.0' }];
filterEmojis('14.0', true, emojis); // [{emoji: '🫶', version: '14.0' }]
filterEmojis('14.0', false, emojis); // [{emoji: '🫶', version: '14.0' }]
filterEmojis('1.0', false, emojis); // []
getAllComponents();
{
"skin-tone": [
{
"emoji": "🏻",
"description": "light skin tone",
"version": "1.0"
},
{
"emoji": "🏼",
"description": "medium-light skin tone",
"version": "1.0"
},
// ...
],
"hair-style": [
{
"emoji": "🦰",
"description": "red hair",
"version": "11.0"
},
{
"emoji": "🦱",
"description": "curly hair",
"version": "11.0"
},
// ...
]
}
getEmojisByGroup('group');
getEmojisByGroup('subgroup');
getEmojisByGroup('category');
FAQs
A collection of utilities for emojis
The npm package unicode-emoji-utils receives a total of 151,417 weekly downloads. As such, unicode-emoji-utils popularity was classified as popular.
We found that unicode-emoji-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.